package com.lagou.homework3;

/**
 * 编写一个员工类   (1)属性: 姓名,年龄       如果年龄小于18龄大于150抛出年龄异常       如果姓名为null或者""抛出空异常
 *
 */
public class StaffTest {

    public static void main(String[] args) {

        Staff st = new Staff("", 20);
        Staff st1 = new Staff("zhangfei", 160);

    }
}
